package com.lebang.mapper;

import com.lebang.configuration.datasource.DataSource;
import com.lebang.domain.PkgEarnInfo;
import com.lebang.example.PkgEarnInfoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * PkgEarnInfoMapper继承基类
 */
@Mapper
public interface PkgEarnInfoMapper extends MyBatisBaseDao<PkgEarnInfo, Integer, PkgEarnInfoExample> {
    @DataSource("commonDB")
    PkgEarnInfo selectByPkgName(String packName);
    @DataSource("commonDB")
    int selectByPkgNameClick(String packName);
    @DataSource("commonDB")
    int checkPkgNameExits(String packName);
    @DataSource("commonDB")
    void enableList(@Param("list") List<String> stringList, @Param("type") Integer type);
    @Override
    @DataSource("commonDB")
    int insertSelective(PkgEarnInfo record);
    @DataSource("commonDB")
    void updateById(Long id);
}